package com.example.wanxiang.repository;

import com.example.wanxiang.entity.Group;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface GroupRepository extends MongoRepository<Group, String> {
     Group findByGroupName(String groupName);

     Group findByUserId(String userId);
}

